package com.bajiao.mapper.statistics;

import com.bajiao.entity.order.CouponOrder;
import com.bajiao.vo.statistics.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StatisticsMapper extends BaseMapper<StatisticsOne> {

    /**
     * @Description
     * 数据统计
     * @date 2025/1/10 14:09
     * @author FanJq
     * @param
     * @return {@link StatisticsOne}
    */
    StatisticsOne getStatisticsOne();

    /**
     * @Description
     * 曲线图
     * @date 2025/1/10 15:52
     * @author FanJq
     * @param
     * @return {@link List< StatisticsTwo>}
    */
    List<StatisticsTwo> getStatisticsTwo();

    /**
     * @Description
     * 累计核销量及面额统计
     * @date 2025/1/10 17:58
     * @author FanJq
     * @param
     * @return {@link List< StatisticsThree>}
    */
    List<StatisticsThree> getStatisticsThree();

    /**
     * @Description
     * 下单转化率统计
     * @date 2025/1/10 17:58
     * @author FanJq
     * @param type
     * @return {@link StatisticsFour}
    */
    StatisticsFour getStatisticsFour(@Param("type") Integer type);

    /**
     * @Description
     * 券类型销量占比
     * @date 2025/1/10 17:58
     * @author FanJq
     * @param type
     * @return {@link StatisticsFive}
    */
    List<CouponOrder> getStatisticsFive(@Param("type") Integer type);
}
